﻿#region Using directives

using System;
using System.ComponentModel;

#endregion

namespace NetROS.Tiers.Entities
{	
	///<summary>
	/// An object representation of the 'tblObracunKamata' table. [No description found the database]	
	///</summary>
	/// <remarks>
	/// This file is generated once and will never be overwritten.
	/// </remarks>	
	[Serializable]
	[CLSCompliant(true)]
	public partial class ObracunKamata : ObracunKamataBase
	{		
		#region Constructors

		///<summary>
		/// Creates a new <see cref="ObracunKamata"/> instance.
		///</summary>
		public ObracunKamata():base(){}	
		
		#endregion

        ///<summary>
        ///</summary>
        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        [DataObjectField(false, false, true, 300)]
        public Int32? DatumDospijecaDana
        {
            get
            {
                TimeSpan? tmp = base.DatumDospijeca - base.DatumObracuna;
                return tmp.Value.Days;

            }

            set
            {
               base.DatumDospijeca = base.DatumObracuna.AddDays(Convert.ToDouble(value.Value));
            }
        } 
	}
}
